//
//  JXPopoverController.swift
//  01-weiboSwift
//
//  Created by TwistFate on 16/3/1.
//  Copyright © 2016年 TwistFate. All rights reserved.
//

import UIKit

class JXPopoverController: UITableViewController {

    private let reuseIdntifier = "reuseIdntifier"
    
    let date = ["首页", "好友圈", "群微博", "我的微博", "新浪微博","特别关注","周边微博"]
    
    override func viewDidLoad() {
        super.viewDidLoad()

        tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: reuseIdntifier)
    }

    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return date.count
    }

    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier(reuseIdntifier, forIndexPath: indexPath)
        
        cell.textLabel?.text = date[indexPath.row]
        
        return cell
    }
}
